/*
 *  XmlWriter.h
 *
 *
 *  Created by Aleem Haji on June 12, 2011.
 *  Copyright 2011. All rights reserved.
 *
 */

#ifndef XMLWRITER_H
#define XMLWRITER_H

#include <QFile>

class XmlWriter
{
public:
    XmlWriter(const QString& fileName);

protected:

    void writeObject(const QString& object);
    void closeObject(const QString& object);
    void writeAttribute(const QString& attribute, const QString& value);

private:

    QString indent();

    QFile m_file;
    int m_indent;
};

#endif // XMLWRITER_H
